﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using HotelSoft.HotelManagement_DAO;
using HotelSoft.HotelManagement_DTO;
using System.Data;

namespace HotelSoft.HotelManagement_BUS
{
    class HoaDoanThanhToanBUS
    {
        DataTable bcdtn = new DataTable();
        private HoaDonThanhToanDAO bc = new HoaDonThanhToanDAO();
        public DataTable HoaDonThanhToan()
        {
            bcdtn = ChuyenDoi.ToDataTable(bc.HoaDonThanhToan());
            return bcdtn;
        }

        //public DataTable TimKiemTheoTenKH(string kh)
        //{
        //    bcdtn = ChuyenDoi.ToDataTable(bc.TimKiemTheoTenKH(kh));
        //    return bcdtn;
        //}

        //public DataTable TimKiemTheoSoTienThanhToan(float t)
        //{
        //    bcdtn = ChuyenDoi.ToDataTable(bc.TimKiemTheoTienThanhToan(t));
        //    return bcdtn;
        //}

        public ArrayList getHoaDonThanhToan()
        {
            return bc.HoaDonThanhToan();
        }

        public ArrayList TraCuuHD(ArrayList dsHD, HoaDonThanhToanDTO dtoHD)
        {
            return bc.TraCuuHD(dsHD, dtoHD);
        }
    }
}
